package com.hdax.dm.entity.order;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hdax.dm.entity.BaseTimeEntity;
import lombok.Data;

@Data
@TableName("dm_order")
public class Order extends BaseTimeEntity {
    @TableId
    private Long id;
    private String orderNo;
    private Long userId;
    private Long schedulerId;
    private Long itemId;
    private String itemName;
    private String wxTradeNo;
    private String aliTradeNo;
    private Long orderType;//0:未支付  -1:支付超时/已取消 2:已支付
    private Long payType = 1L; //1:支付宝支付 2:微信支付
    private Long totalCount;
    private Long sourceType;//支付终端 0:WEB端 1:手机端 2:其他客户端
    private Short isNeedInvoice;//是否需要发票
    private Short invoiceType;//发票类型 0:个人 1:公司
    private String invoiceHead;//发票抬头
    private String invoiceNo;//税号
    private Short isNeedInsurance;//是否需要购买保险
    private Long totalAmount;//订单总金额

}
